Boyuan Yang [Wed, 14 Jan 2026 00:17:36 +0000 (19:17 -0500)]
Merge opencc (1.1.9+ds1-4) import into refs/heads/workingbranch
Boyuan Yang [Tue, 13 Jan 2026 23:04:57 +0000 (18:04 -0500)]
setup.py: Handle python binding instead of cmake
Gbp-Pq: Name 0009-setup.py-Handle-python-binding-instead-of-cmake.patch
frankslin [Tue, 13 Jan 2026 00:51:38 +0000 (16:51 -0800)]
[PATCH] Fix two out-of-bounds read issues when handling truncated UTF-8 input (#1005)
Two independent out-of-bounds read issues were identified in OpenCC's UTF-8
processing logic when handling malformed or truncated UTF-8 sequences.
1) MaxMatchSegmentation:
NextCharLength() could return a value larger than the remaining input size.
The previous logic subtracted this value from a size_t length counter,
potentially causing underflow and subsequent out-of-bounds reads.
2) Conversion:
Similar length handling could allow reads past the end of the input buffer
during dictionary matching, potentially propagating unintended bytes to the
conversion output.
This patch fixes both issues by:
- Explicitly tracking the end of the input buffer
- Recomputing remaining length on each iteration
- Clamping matched character and key lengths to the remaining buffer size
- Preventing reads past the null terminator
The changes preserve existing behavior for valid UTF-8 input and add test
coverage for truncated UTF-8 sequences.
These issues may have security implications when processing untrusted input
and are classified as heap out-of-bounds reads (CWE-125).
Co-authored-by: Claude <noreply@anthropic.com>
Applied-Upstream: https://github.com/BYVoid/OpenCC/commit/
345c9a50ab07018f1b4439776bad78a0d40778ec
Gbp-Pq: Topic backport
Gbp-Pq: Name
345c9a50ab07018f1b4439776bad78a0d40778ec.patch
WhiredPlanck [Fri, 4 Jul 2025 19:57:30 +0000 (03:57 +0800)]
Fix deprecated declarations in C++17
Gbp-Pq: Topic backport
Gbp-Pq: Name 0007-Fix-deprecated-declarations-in-C-17.patch
Peng Wu [Wed, 12 Feb 2025 16:15:10 +0000 (00:15 +0800)]
Fix build for gcc 15 (#934)
Co-authored-by: Peng Wu <pwu@redhat.com>
Bug-Debian: https://bugs.debian.org/
1097512
Gbp-Pq: Topic backport
Gbp-Pq: Name 0006-Fix-build-for-gcc-15-934.patch
Shengjing Zhu [Fri, 2 Aug 2024 09:11:08 +0000 (17:11 +0800)]
Disable build in setup.py
Gbp-Pq: Name 0005-Disable-build-in-setup.py.patch
Shengjing Zhu [Sun, 28 Jul 2024 23:44:27 +0000 (19:44 -0400)]
Use system googletest
Forwarded: not-needed
Last-Update: 2024-07-28
Gbp-Pq: Name 0004-Use-system-googletest.patch
Gunnar Hjalmarsson [Sun, 28 Jul 2024 23:42:55 +0000 (19:42 -0400)]
Don't fetch remote images when reading docs on disk
This fixes a privacy breach previously reported as Lintian warnings
Forwarded: not-needed
Last-Update: 2024-07-28
Gbp-Pq: Name 0003-no-remote-images-when-reading-docs-on-disk.patch
Boyuan Yang [Tue, 9 Sep 2025 12:25:14 +0000 (08:25 -0400)]
Force build with c++17
Needed by googletest.
Gbp-Pq: Name 0002-Force-build-with-c-17.patch
IME Packaging Team [Mon, 9 Oct 2017 14:02:39 +0000 (22:02 +0800)]
use-cmake-install-libdir
Update 2021-09-18: Also use GNUInstallDirs.
Last-Update: 2024-07-28
Gbp-Pq: Name 0001-use-cmake-install-libdir.patch
Boyuan Yang [Wed, 14 Jan 2026 00:17:36 +0000 (19:17 -0500)]
opencc (1.1.9+ds1-4) unstable; urgency=medium
* debian/control: Bump Standards-Version to 4.7.3.
* Build-dep on python3-all-dev instead of python3-dev. (Closes: #
1125410)
* debian/rules: Enable DH_VERBOSE for better debugging.
* debian/pybuild.testfiles: Added to enable python binding post-build tests.
* debian/patches/backport/
345c9a50ab07018f1b4439776bad78a0d40778ec.patch:
Add patch from upstream to fix out-of-bounds read issues when handling
truncated UTF-8 input.
* debian/patches/0009-setup.py-Handle-python-binding-instead-of-cmake.patch:
Add patch so that the python3 binding as well as pybind11 usage is handled
by setup.py, not CMakeLists.txt. This is required to build for all
supported python3 versions instead of just the default one.
* debian/rules: Adjust python-related building accordingly.
[dgit import unpatched opencc 1.1.9+ds1-4]
Boyuan Yang [Wed, 14 Jan 2026 00:17:36 +0000 (19:17 -0500)]
Import opencc_1.1.9+ds1-4.debian.tar.xz
[dgit import tarball opencc 1.1.9+ds1-4 opencc_1.1.9+ds1-4.debian.tar.xz]
Boyuan Yang [Sun, 28 Sep 2025 23:36:20 +0000 (19:36 -0400)]
Declare fast forward from 1.1.9+ds1-2
[dgit --quilt=gbp --overwrite]
WhiredPlanck [Fri, 4 Jul 2025 19:57:30 +0000 (03:57 +0800)]
Fix deprecated declarations in C++17
Gbp-Pq: Topic backport
Gbp-Pq: Name 0007-Fix-deprecated-declarations-in-C-17.patch
Peng Wu [Wed, 12 Feb 2025 16:15:10 +0000 (00:15 +0800)]
Fix build for gcc 15 (#934)
Co-authored-by: Peng Wu <pwu@redhat.com>
Bug-Debian: https://bugs.debian.org/
1097512
Gbp-Pq: Topic backport
Gbp-Pq: Name 0006-Fix-build-for-gcc-15-934.patch
Shengjing Zhu [Fri, 2 Aug 2024 09:11:08 +0000 (17:11 +0800)]
Disable build in setup.py
Gbp-Pq: Name 0005-Disable-build-in-setup.py.patch
Shengjing Zhu [Sun, 28 Jul 2024 23:44:27 +0000 (19:44 -0400)]
Use system googletest
Forwarded: not-needed
Last-Update: 2024-07-28
Gbp-Pq: Name 0004-Use-system-googletest.patch
Gunnar Hjalmarsson [Sun, 28 Jul 2024 23:42:55 +0000 (19:42 -0400)]
Don't fetch remote images when reading docs on disk
This fixes a privacy breach previously reported as Lintian warnings
Forwarded: not-needed
Last-Update: 2024-07-28
Gbp-Pq: Name 0003-no-remote-images-when-reading-docs-on-disk.patch
Boyuan Yang [Tue, 9 Sep 2025 12:25:14 +0000 (08:25 -0400)]
Force build with c++17
Needed by googletest.
Gbp-Pq: Name 0002-Force-build-with-c-17.patch
IME Packaging Team [Mon, 9 Oct 2017 14:02:39 +0000 (22:02 +0800)]
use-cmake-install-libdir
Update 2021-09-18: Also use GNUInstallDirs.
Last-Update: 2024-07-28
Gbp-Pq: Name 0001-use-cmake-install-libdir.patch
Boyuan Yang [Sun, 28 Sep 2025 23:37:16 +0000 (19:37 -0400)]
Upload to unstable.
Boyuan Yang [Wed, 24 Sep 2025 00:08:09 +0000 (20:08 -0400)]
Test rebuild against libmarisa 0.3.1.
Boyuan Yang [Tue, 9 Sep 2025 12:26:44 +0000 (08:26 -0400)]
Force building with c++17 standard
Boyuan Yang [Tue, 9 Sep 2025 12:26:01 +0000 (08:26 -0400)]
Declare fast forward from 1.1.9+ds1-1
[dgit --quilt=gbp --overwrite]
WhiredPlanck [Fri, 4 Jul 2025 19:57:30 +0000 (03:57 +0800)]
Fix deprecated declarations in C++17
Gbp-Pq: Topic backport
Gbp-Pq: Name 0007-Fix-deprecated-declarations-in-C-17.patch
Peng Wu [Wed, 12 Feb 2025 16:15:10 +0000 (00:15 +0800)]
Fix build for gcc 15 (#934)
Co-authored-by: Peng Wu <pwu@redhat.com>
Bug-Debian: https://bugs.debian.org/
1097512
Gbp-Pq: Topic backport
Gbp-Pq: Name 0006-Fix-build-for-gcc-15-934.patch
Shengjing Zhu [Fri, 2 Aug 2024 09:11:08 +0000 (17:11 +0800)]
Disable build in setup.py
Gbp-Pq: Name 0005-Disable-build-in-setup.py.patch
Shengjing Zhu [Sun, 28 Jul 2024 23:44:27 +0000 (19:44 -0400)]
Use system googletest
Forwarded: not-needed
Last-Update: 2024-07-28
Gbp-Pq: Name 0004-Use-system-googletest.patch
Gunnar Hjalmarsson [Sun, 28 Jul 2024 23:42:55 +0000 (19:42 -0400)]
Don't fetch remote images when reading docs on disk
This fixes a privacy breach previously reported as Lintian warnings
Forwarded: not-needed
Last-Update: 2024-07-28
Gbp-Pq: Name 0003-no-remote-images-when-reading-docs-on-disk.patch
Boyuan Yang [Tue, 9 Sep 2025 12:25:14 +0000 (08:25 -0400)]
Force build with c++17
Needed by googletest.
Gbp-Pq: Name 0002-Force-build-with-c-17.patch
IME Packaging Team [Mon, 9 Oct 2017 14:02:39 +0000 (22:02 +0800)]
use-cmake-install-libdir
Update 2021-09-18: Also use GNUInstallDirs.
Last-Update: 2024-07-28
Gbp-Pq: Name 0001-use-cmake-install-libdir.patch
Boyuan Yang [Tue, 9 Sep 2025 12:21:38 +0000 (08:21 -0400)]
Fix FTBFS with gcc-15
Boyuan Yang [Wed, 14 Aug 2024 18:06:09 +0000 (14:06 -0400)]
Upload to unstable.
Shengjing Zhu [Fri, 2 Aug 2024 09:11:08 +0000 (17:11 +0800)]
Disable build in setup.py
Gbp-Pq: Name 0005-Disable-build-in-setup.py.patch
Shengjing Zhu [Sun, 28 Jul 2024 23:44:27 +0000 (19:44 -0400)]
Use system googletest
Forwarded: not-needed
Last-Update: 2024-07-28
Gbp-Pq: Name 0004-Use-system-googletest.patch
Gunnar Hjalmarsson [Sun, 28 Jul 2024 23:42:55 +0000 (19:42 -0400)]
Don't fetch remote images when reading docs on disk
This fixes a privacy breach previously reported as Lintian warnings
Forwarded: not-needed
Last-Update: 2024-07-28
Gbp-Pq: Name 0003-no-remote-images-when-reading-docs-on-disk.patch
IME Packaging Team [Mon, 9 Oct 2017 14:02:39 +0000 (22:02 +0800)]
use-cmake-install-libdir
Update 2021-09-18: Also use GNUInstallDirs.
Last-Update: 2024-07-28
Gbp-Pq: Name 0001-use-cmake-install-libdir.patch
Boyuan Yang [Wed, 14 Aug 2024 18:05:52 +0000 (14:05 -0400)]
opencc (1.1.9+ds1-1) unstable; urgency=medium
* Upload to unstable.
[dgit import unpatched opencc 1.1.9+ds1-1]
Boyuan Yang [Wed, 14 Aug 2024 18:05:52 +0000 (14:05 -0400)]
Import opencc_1.1.9+ds1-1.debian.tar.xz
[dgit import tarball opencc 1.1.9+ds1-1 opencc_1.1.9+ds1-1.debian.tar.xz]
Boyuan Yang [Wed, 14 Aug 2024 16:27:08 +0000 (12:27 -0400)]
Allow incorrect python test infra for now
Boyuan Yang [Wed, 14 Aug 2024 16:32:59 +0000 (12:32 -0400)]
Import opencc_1.1.9+ds1.orig.tar.xz
[dgit import orig opencc_1.1.9+ds1.orig.tar.xz]
Boyuan Yang [Tue, 13 Aug 2024 16:51:24 +0000 (12:51 -0400)]
Update build-dep
Boyuan Yang [Tue, 13 Aug 2024 16:48:30 +0000 (12:48 -0400)]
Update upstream source from tag 'upstream/1.1.9+ds1'
Update to upstream version '1.1.9+ds1'
with Debian dir
126bbcc44631798ac522e64af80abad1dfc4d7cc
Boyuan Yang [Tue, 13 Aug 2024 16:48:28 +0000 (12:48 -0400)]
New upstream version 1.1.9+ds1
Boyuan Yang [Sat, 3 Aug 2024 23:08:10 +0000 (19:08 -0400)]
Use dh-sequence-python3, pyproject
Boyuan Yang [Sat, 3 Aug 2024 23:05:57 +0000 (19:05 -0400)]
debian/rules: Use pyproject instead of distutils for pybuild
Boyuan Yang [Sat, 3 Aug 2024 23:04:03 +0000 (19:04 -0400)]
debian/control: Move main description to source pkg section
Shengjing Zhu [Sat, 3 Aug 2024 06:45:31 +0000 (14:45 +0800)]
Close #
1077816 in changelog
Shengjing Zhu [Sat, 3 Aug 2024 05:39:12 +0000 (13:39 +0800)]
Update changelog for 1.1.8+ds1-2 release
Felix Yan [Fri, 2 Aug 2024 09:02:12 +0000 (12:02 +0300)]
Enable python binding
Co-authored-by: Shengjing Zhu <zhsj@debian.org>
Shengjing Zhu [Fri, 2 Aug 2024 09:13:32 +0000 (17:13 +0800)]
Disable build in setup.py
Boyuan Yang [Mon, 29 Jul 2024 16:08:20 +0000 (12:08 -0400)]
Upload to unstable.
Boyuan Yang [Mon, 29 Jul 2024 00:00:56 +0000 (20:00 -0400)]
Use dh-sequence-pkgkde-symbolshelper
Boyuan Yang [Sun, 28 Jul 2024 23:59:42 +0000 (19:59 -0400)]
Update symbols
Boyuan Yang [Sun, 28 Jul 2024 23:40:12 +0000 (19:40 -0400)]
Refresh patches
Boyuan Yang [Sun, 28 Jul 2024 23:38:34 +0000 (19:38 -0400)]
New upload
Boyuan Yang [Sun, 28 Jul 2024 23:37:21 +0000 (19:37 -0400)]
Update upstream source from tag 'upstream/1.1.8+ds1'
Update to upstream version '1.1.8+ds1'
with Debian dir
cfcc47111f06e021b850e93f4a71585b4176ac88
Boyuan Yang [Sun, 28 Jul 2024 23:37:19 +0000 (19:37 -0400)]
New upstream version 1.1.8+ds1
Boyuan Yang [Sun, 28 Jul 2024 23:35:58 +0000 (19:35 -0400)]
debian/copyright: Updated
Gunnar Hjalmarsson [Sat, 21 Oct 2023 19:23:32 +0000 (21:23 +0200)]
Upload 1.1.7+ds1-1 to unstable
Gunnar Hjalmarsson [Sat, 21 Oct 2023 19:21:34 +0000 (21:21 +0200)]
Install CMake config modules
Gunnar Hjalmarsson [Sat, 21 Oct 2023 18:02:57 +0000 (20:02 +0200)]
Update upstream source from tag 'upstream/1.1.7+ds1'
Update to upstream version '1.1.7+ds1'
with Debian dir
26cfbd6bbe193f22e66f16647637bd2fe0daff67
Gunnar Hjalmarsson [Sat, 21 Oct 2023 18:02:56 +0000 (20:02 +0200)]
New upstream version 1.1.7+ds1
Boyuan Yang [Fri, 1 Sep 2023 16:01:08 +0000 (12:01 -0400)]
Fix FTCBFS; Add B-D: opencc <cross>
Gunnar Hjalmarsson [Sat, 10 Dec 2022 12:11:12 +0000 (13:11 +0100)]
Upload 1.1.6+ds1-1 to unstable
Gunnar Hjalmarsson [Sat, 10 Dec 2022 11:52:18 +0000 (12:52 +0100)]
Refresh patches
Gunnar Hjalmarsson [Sat, 10 Dec 2022 11:10:23 +0000 (12:10 +0100)]
Update upstream source from tag 'upstream/1.1.6+ds1'
Update to upstream version '1.1.6+ds1'
with Debian dir
7ef99613e2bab28432fa545889459d0ad3a986b8
Gunnar Hjalmarsson [Sat, 10 Dec 2022 11:10:22 +0000 (12:10 +0100)]
New upstream version 1.1.6+ds1
Gunnar Hjalmarsson [Tue, 6 Dec 2022 12:42:03 +0000 (13:42 +0100)]
Upload 1.1.5+ds1-1 to unstable
Gunnar Hjalmarsson [Tue, 6 Dec 2022 12:27:40 +0000 (13:27 +0100)]
Update upstream source from tag 'upstream/1.1.5+ds1'
Update to upstream version '1.1.5+ds1'
with Debian dir
f2665e9631999c7ea2a4ea1384d893533cc1aa58
Gunnar Hjalmarsson [Tue, 6 Dec 2022 12:27:38 +0000 (13:27 +0100)]
New upstream version 1.1.5+ds1
Gunnar Hjalmarsson [Tue, 8 Nov 2022 15:35:21 +0000 (16:35 +0100)]
Upload 1.1.4+ds1-4 to unstable
Gunnar Hjalmarsson [Tue, 8 Nov 2022 15:28:14 +0000 (16:28 +0100)]
Work around uscan issue with GitHub releases page
The releases pages at GitHub are currently generated in a way which is
not compatible with uscan. This commit replaces "releases" with "tags"
in debian/watch to work around the issue.
Gunnar Hjalmarsson [Mon, 25 Jul 2022 00:28:57 +0000 (02:28 +0200)]
Upload 1.1.4+ds1-3 to unstable
Gunnar Hjalmarsson [Mon, 25 Jul 2022 00:11:54 +0000 (02:11 +0200)]
Build with GCC-12
Gunnar Hjalmarsson [Mon, 25 Jul 2022 00:03:20 +0000 (02:03 +0200)]
Update symbols file for LTO using buildd logs
Closes: #1015565
Gunnar Hjalmarsson [Sat, 23 Jul 2022 17:07:27 +0000 (19:07 +0200)]
Upload 1.1.4+ds1-2 to unstable
Gunnar Hjalmarsson [Sat, 23 Jul 2022 17:04:31 +0000 (19:04 +0200)]
debian/copyright: Bump copyright year to 2022
Gunnar Hjalmarsson [Sat, 23 Jul 2022 16:54:17 +0000 (18:54 +0200)]
Bump Standards-Version to 4.6.1
Gunnar Hjalmarsson [Sat, 23 Jul 2022 16:52:35 +0000 (18:52 +0200)]
Create symbols file for amd64 only
Gunnar Hjalmarsson [Sat, 23 Jul 2022 15:21:24 +0000 (17:21 +0200)]
debian/rules: Enable LTO
Boyuan Yang [Sat, 4 Jun 2022 15:52:38 +0000 (11:52 -0400)]
Refresh symbols
Boyuan Yang [Sat, 4 Jun 2022 15:44:47 +0000 (11:44 -0400)]
Prepare new upload.
Boyuan Yang [Sat, 4 Jun 2022 15:41:13 +0000 (11:41 -0400)]
debian/patches: Refresh patches
Boyuan Yang [Sat, 4 Jun 2022 15:39:43 +0000 (11:39 -0400)]
Update upstream source from tag 'upstream/1.1.4+ds1'
Update to upstream version '1.1.4+ds1'
with Debian dir
dfbc3a089c531c3de4ff66b9e161449546c81799
Boyuan Yang [Sat, 4 Jun 2022 15:39:42 +0000 (11:39 -0400)]
New upstream version 1.1.4+ds1
xiao sheng wen [Sun, 12 Dec 2021 11:12:32 +0000 (19:12 +0800)]
update-debian-copyright to 2021 year
Signed-off-by: xiao sheng wen <atzlinux@sina.com>
Gunnar Hjalmarsson [Wed, 27 Oct 2021 07:41:28 +0000 (09:41 +0200)]
Upload to unstable
Gunnar Hjalmarsson [Wed, 27 Oct 2021 07:36:34 +0000 (09:36 +0200)]
Refresh symbols using buildd logs for all archs
Gunnar Hjalmarsson [Tue, 26 Oct 2021 21:05:24 +0000 (23:05 +0200)]
Upload to unstable
Gunnar Hjalmarsson [Tue, 26 Oct 2021 20:32:14 +0000 (22:32 +0200)]
Re-build with GCC 11
Boyuan Yang [Mon, 20 Sep 2021 19:44:59 +0000 (15:44 -0400)]
Prepare new upload.
Boyuan Yang [Sun, 19 Sep 2021 20:33:16 +0000 (16:33 -0400)]
Prepare new upload.
Boyuan Yang [Sun, 19 Sep 2021 20:30:12 +0000 (16:30 -0400)]
debian/symbols: Refresh symbols again
Boyuan Yang [Sun, 19 Sep 2021 01:13:24 +0000 (21:13 -0400)]
Refresh symbols again
Boyuan Yang [Sun, 19 Sep 2021 01:12:39 +0000 (21:12 -0400)]
refresh symbols again
Boyuan Yang [Sun, 19 Sep 2021 01:06:35 +0000 (21:06 -0400)]
debian/libopencc1.1.symbols: Refresh symbosl
Boyuan Yang [Sun, 19 Sep 2021 00:47:06 +0000 (20:47 -0400)]
debian/changelog: New version
Boyuan Yang [Sun, 19 Sep 2021 00:41:23 +0000 (20:41 -0400)]
debian/patches: Refresh patch 0005
Boyuan Yang [Sun, 19 Sep 2021 00:33:08 +0000 (20:33 -0400)]
debian/patches/0004: Refresh